//
//  ZJPersonalPageViewController.m
//  iosFramework
//
//  Created by Farben on 2020/8/5.
//  Copyright © 2020 Farben. All rights reserved.
//

#import "ZJPersonalPageViewController.h"

@interface ZJPersonalPageViewController ()

@property (nonatomic , strong)UILabel *textLabel;


@end

@implementation ZJPersonalPageViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    [self.view addSubview:self.textLabel];
    [self.textLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        
            make.centerY.equalTo(self.view);
            make.centerX.equalTo(self.view);
            make.width.mas_equalTo(300);
            make.height.mas_equalTo(200);
        
    }];
    
    
    
}


-(UILabel*)textLabel{
    if(!_textLabel){
        _textLabel = [[UILabel alloc]init];
        _textLabel.text = @"布局使用Masonry";
        _textLabel.textAlignment = NSTextAlignmentCenter;
        _textLabel.font = SYSTEMFONT(20);
        
    }
    return _textLabel;
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
